package org.example.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Department;
import org.example.mapper.DepartmentMapper;
@Service
public class DepartmentService extends ServiceImpl<DepartmentMapper, Department> {
    public List<Department> selectDeptTree(){
        return this.baseMapper.selectDeptTree(0);
    }
    public List<Department> queryTheContentBasedOnTheId(@Param("deptId") String deptId){
        return baseMapper.queryTheContentBasedOnTheId(deptId);
    }

    public List<Department> selectDepartmentWithStructure(@Param("deptId") Integer deptId){
        return baseMapper.selectDepartmentWithStructure(deptId);
    }
}
